package cn.whale.basic.constants;

public class RedisConstants {
    //秒杀场次
    public static final String KEY_KILL_SESSIONS = "key_kill_sessions";
    //秒杀商品
    public static final String KEY_KILL_COURSE = "key_kill_course";
    //每个商品的信号量  : key_kill_course_semaphore:1 = 100
    public static final String KEY_KILL_COURSE_SEMAPHORE = "key_kill_course_semaphore:%S";
    //用来维护秒杀场次和秒杀商品的关系结构： key_kill_relation:1 = [1,2,3]
    public static final String KEY_KILL_COURSE_RELATION = "key_kill_course_relation:%s";
    //记录用户的秒杀数量
    public static final String KEY_KILL_USER_LOG = "KEY_KILL_USER_LOG:%s";
    //记录用户的秒杀结果
    public static final String KEY_KILL_USER_RESULT = "key_kill_user_result";
}
